package com.ws.exer2;

public class BankTest {
    public static void main(String[] args) {

        Bank bank = new Bank();

        bank.addCustomer("Jane", "Smith");

        //存钱
        bank.getCustomer(0).setAccount(new Account(2000));

        //取钱
        bank.getCustomer(0).getAccount().withdraw(500);

        double balance = bank.getCustomer(0).getAccount().getBalance();
        System.out.println("客户：" + bank.getCustomer(0).getFirstName() + " 的账号余额为：" + balance);
        System.out.println("*********************");

        bank.addCustomer("四", "李");
        System.out.println("银行客户的个数为：" + bank.getNumberOfCustomers());

    }

}
